<?php
/* Squawk Content Management System
"Crane"
Written by Max Morgan <max@cridiron.com>

Licensed under GPLv3 (See LICENSE.txt for details)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>. */

// Post form
// Make blog posting here

include('../includes.php');		// Global config file

// Build form
echo "
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<head>
<meta http-equiv='Content-type' content='text/html;charset=UTF-8' /> 
<title>$SiteName - Add Entry</title>
</head>
<body>
<p><a href='$BaseURL'><img src='$cclogo' alt='$SiteName' style='border-style: none' /></a></p>
<p><em>$SiteMotto</em></p>
<hr />

<!-- Begin form -->
<form action='post-ok.php' method='post'>
<ul>
<li>Title: <input name='ptitle' type='text'/></li>
<li>Author: <input name='pauth' type='text'/></li>
<li>Post (including HTML markup):</li>
</ul>
<p><textarea name='ppost' cols='100' rows='20'>Write post here...</textarea></p>
<ul>
<li>Please enter your user name and password to authenticate the post</li>
<li>User: <input name='puser' type='text' /></li>
<li>Pass: <input name='ppass' type='password' /></li>
<li><input type='submit' value='Submit' /></li>
</ul>
</form>
<!-- End form -->

<p>Posts are automatically dated and assigned a numerical ID. This may change in future releases.
<br /><strong>MAKE SURE YOUR LOGIN IS CORRECT!</strong> There is currently no way to recover your post
once you click <em>Submit</em>, so be sure everything is in order. You don't want to have to re-write
everything, do you?</p>

<!-- Begin footer -->
<hr />	
<p>$ccfooter</p>
<p><a href='http://validator.w3.org/check?uri=referer'>
<img src='http://www.w3.org/Icons/valid-xhtml10' alt='Valid
XHTML 1.0 Strict' height='31' width='88' style='border-style: none' /></a></p>
<!-- Build version footer, remove it if you like -->
<p>$VFooter</p>
<!-- End footer -->
</body>
</html>";

?>
